package com.handyshop.mall.dubbo.user.dto.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author hs
 */
@Data
@ApiModel(value = "编辑菜单表")
public class SysMenuEditDto {
    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "菜单ID")
    private Long id;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单权限标识")
    private String permission;

    @ApiModelProperty(value = "前端URL")
    private String path;

    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "VUE页面")
    private String component;

    @ApiModelProperty(value = "排序值")
    private Integer sort;

    @ApiModelProperty(value = "状态(0:开启;1关闭)")
    private Integer status;

    @ApiModelProperty(value = "菜单类型 （0菜单 1按钮）")
    private Integer type;

}